package com.letian.record.domain;

import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.letian.common.annotation.Excel;
import com.letian.common.core.domain.BaseEntity;

/**
 * 饮用记录对象 record_drink
 * 
 * @author bmz
 * @date 2023-07-13
 */
public class RecordDrink extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码 */
    private Long drinkId;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date drinkDate;

    /** 时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "HH:mm:ss")
    private Time drinkTime;

    /** 容量 */
    @Excel(name = "容量")
    private Long capacity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 饮品类型 */
    @Excel(name = "饮品类型")
    private String drinkType;

    /** 删除标志 */
    private String delFlag;

    /** 更新次数 */
    private Long updateCount;

    public void setDrinkId(Long drinkId) 
    {
        this.drinkId = drinkId;
    }

    public Long getDrinkId() 
    {
        return drinkId;
    }
    public void setDrinkDate(Date drinkDate) 
    {
        this.drinkDate = drinkDate;
    }

    public Date getDrinkDate()
    {
        return drinkDate;
    }
    public void setDrinkTime(Time drinkTime)
    {
        this.drinkTime = drinkTime;
    }

    public Time getDrinkTime()
    {
        return drinkTime;
    }
    public void setCapacity(Long capacity) 
    {
        this.capacity = capacity;
    }

    public Long getCapacity() 
    {
        return capacity;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setDrinkType(String drinkType) 
    {
        this.drinkType = drinkType;
    }

    public String getDrinkType() 
    {
        return drinkType;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setUpdateCount(Long updateCount) 
    {
        this.updateCount = updateCount;
    }

    public Long getUpdateCount() 
    {
        return updateCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drinkId", getDrinkId())
            .append("drinkDate", getDrinkDate())
            .append("drinkTime", getDrinkTime())
            .append("capacity", getCapacity())
            .append("unit", getUnit())
            .append("drinkType", getDrinkType())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("updateCount", getUpdateCount())
            .append("remark", getRemark())
            .toString();
    }
}
